import request from '@/utils/request'

// 登录接口
/* export function reqLogin(data) {
  // return request.post("/sys/login", data);
  return request({
    method: "post",
    url: "/sys/login",
    data,
  });
} */
export const reqLogin = (data) => request({
  method: 'post',
  url: '/sys/login',
  data
})
// 获取用户基本资料
export const reqGetUserInfo = () => request({
  method: 'post',
  url: '/sys/profile'
  // 除了登录不需要挂载token
  // headers: {
  //   Authorization: `Bearer ${store.getters.token}`
  // }
})
// 获取员工带头像的信息
export const reqGetUserDetail = (id) => request({ // id是对应用户的id
  url: `/sys/user/${id}`
})
// 部门负责人列表数据
export const reqGetSimpleList = () => request({
  method: 'get',
  url: '/sys/user/simple'
})
